<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="http://d3js.org/d3.v3.min.js"></script>
</head>
<body>
<p>
This is a test
</p>

<script>
    console.log(d3);
    d3.select("p").text("test a is This");
    d3.select("body").append("p").text("This is second test");
</script>

</body>
</html>